package forumSystem;

import java.sql.Date;

public class User {
	private int id;
	private Rank rank;
	private String username;
	private String pass;
	private int forumId;
	private String mail;
	private int year;
	private int month;
	private int day;
	
	
	public User(int id, Rank rank, String username, String pass, int forumId,String mail, int year, int month, int day){
		this.id=id;
		this.rank=rank;
		this.username=username;
		this.pass=pass;
		this.forumId = forumId;
		this.setYear(year);
		this.setMonth(month);
		this.setDay(day);
		this.mail=mail;
	}
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public Rank getRank() {
		return rank;
	}
	public void setRank(Rank rank) {
		this.rank = rank;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPass() {
		return pass;
	}
	public void setPass(String pass) {
		this.pass = pass;
	}
	public int getForumIDRegisteredTo() 
	{
		return forumId;
	}

	public int getYear() {
		return year;
	}

	public void setYear(int year) {
		this.year = year;
	}

	public int getMonth() {
		return month;
	}

	public void setMonth(int month) {
		this.month = month;
	}

	public int getDay() {
		return day;
	}

	public void setDay(int day) {
		this.day = day;
	}

	public String getMail() {
		return mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}
	
}
